/* 富文本编辑器自定义样式 */
.w-e-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  padding: 12px 16px !important;
  background-color: #f5f7fa !important;
  border: none !important;
}

.w-e-bar-item {
  padding: 4px 8px !important;
  margin: 2px !important;
}

.w-e-bar-item:hover {
  background-color: #e4e7ed !important;
  border-radius: 4px;
}

.w-e-bar-item.active {
  background-color: #ecf5ff !important;
  color: #409eff !important;
}

.w-e-text-container {
  background-color: white;
}

.w-e-text {
  line-height: 1.8;
  font-size: 16px;
}

.w-e-text h1 {
  font-size: 32px;
  margin: 24px 0 16px;
}

.w-e-text h2 {
  font-size: 28px;
  margin: 20px 0 12px;
}

.w-e-text h3 {
  font-size: 24px;
  margin: 16px 0 8px;
}

.w-e-text p {
  margin: 12px 0;
}

.w-e-text ul,
.w-e-text ol {
  margin: 12px 0;
  padding-left: 24px;
}

.w-e-text li {
  margin: 6px 0;
}

.w-e-text blockquote {
  border-left: 4px solid #409eff;
  padding-left: 16px;
  margin: 16px 0;
  color: #606266;
  background-color: #f5f7fa;
  padding: 12px 16px;
}

.w-e-text pre {
  background-color: #f5f7fa;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}

.w-e-text code {
  background-color: #f5f7fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
}

.w-e-text table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}

.w-e-text th,
.w-e-text td {
  border: 1px solid #dcdfe6;
  padding: 12px;
}

.w-e-text th {
  background-color: #f5f7fa;
  font-weight: 600;
}

.w-e-text img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.w-e-text a {
  color: #409eff;
  text-decoration: none;
}

.w-e-text a:hover {
  text-decoration: underline;
}

/* 选择器弹框样式 */
.w-e-select-list {
  border-radius: 8px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
}

.w-e-select-list li {
  padding: 8px 16px !important;
}

.w-e-select-list li:hover {
  background-color: #f5f7fa !important;
}

/* 模态框样式 */
.w-e-modal {
  border-radius: 8px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
}

.w-e-modal-header {
  padding: 16px 20px !important;
  background-color: #f5f7fa !important;
  border-bottom: 1px solid #e4e7ed !important;
}

.w-e-modal-body {
  padding: 20px !important;
}

.w-e-modal-footer {
  padding: 16px 20px !important;
  background-color: #f5f7fa !important;
  border-top: 1px solid #e4e7ed !important;
}

.w-e-button {
  padding: 8px 16px !important;
  border-radius: 4px !important;
}

.w-e-button-primary {
  background-color: #409eff !important;
  border-color: #409eff !important;
}

.w-e-button-primary:hover {
  background-color: #66b1ff !important;
  border-color: #66b1ff !important;
}